package conchmusic.conchmusicclient.util;

import java.io.File;

/**
 * Created by Administrator on 2017/4/27.
 */

public class DeleteSong {
    private String localSongUrl;
    private String pictureUrl;
    private String lyricUrl;

    public DeleteSong(String localSongUrl, String pictureUrl, String lyricUrl) {
        this.localSongUrl = localSongUrl;
        this.pictureUrl = pictureUrl;
        this.lyricUrl = lyricUrl;
    }

    public void deleteSong(){
        File localSongFile=new File(localSongUrl);
        localSongFile.delete();
        if(!pictureUrl.equals("")){
            File picureFile=new File(pictureUrl);
            picureFile.delete();
        }
        if(!lyricUrl.equals("")){
            File lyricFile=new File(lyricUrl);
            lyricFile.delete();
        }
    }
}
